/**
 * Admui v1.0.0 (http://www.admui.com/) Copyright 2015-2017 Admui Team Licensed
 * under the Admui License 1.0 (http://www.admui.com/about/#license)
 */
var _0xe88e = [
		'target',
		'parent',
		'attr',
		'href',
		'replace',
		'hasClass',
		'siblings',
		'children',
		'[data-toggle=\"tab\"]',
		'tab',
		'preventDefault',
		'trigger',
		'Event',
		'close.bs.tab',
		'ul>li:first',
		'detach',
		'transition',
		'fade',
		'bsTransitionEnd',
		'emulateTransitionEnd',
		'resize',
		'throttle',
		'layout',
		'string',
		'slice',
		'call',
		'test',
		'No such method : ',
		'each',
		'apply',
		'return (function() ',
		'{}.constructor(\"return this\")( )',
		'console',
		'log',
		'warn',
		'info',
		'error',
		'exception',
		'trace',
		'use strict',
		'responsiveHorizontalTabs',
		'.nav-tabs',
		'>li',
		'>.dropdown',
		'.tab-pane',
		'active',
		'.no-menu',
		'.close-tab',
		'$tabs',
		'options',
		'extend',
		'find',
		'$dropdown',
		'dropdownSelector',
		'$items',
		'filter',
		'$dropdownItems',
		'dropdownItemSelector',
		'tabParentSelector',
		'$tabPanel',
		'tabSelector',
		'init',
		'prototype',
		'itemsLenth',
		'length',
		'flag',
		'$nav',
		'append',
		'<li class=\"dropdown\" role=\"presentation\">',
		'<a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\" aria-expanded=\"false\">',
		'<span class=\"caret\"></span> 更多</a><ul class=\"dropdown-menu\" role=\"menu\"></ul></li>',
		'css', 'width', 'opacity', 'breakpoints', 'fnCallback', 'function',
		'bind', 'closeNav', 'close', 'activeClassName', 'index', 'prop',
		'outerHTML', 'ul>li', 'noNavClassName', ':first', 'before', 'hide',
		'show', 'removeClass', 'addClass', 'hidden', 'ul>li:not(li', 'remove',
		'closeSelector', 'data' ];
(function(_0x5342de, _0x26fd75) {
	var _0x148ee6 = function(_0x5edd5) {
		while (--_0x5edd5) {
			_0x5342de['push'](_0x5342de['shift']());
		}
	};
	_0x148ee6(++_0x26fd75);
}(_0xe88e, 0x1a1));
var _0xee88 = function(_0x5d92da, _0x5e4355) {
	_0x5d92da = _0x5d92da - 0x0;
	var _0x498237 = _0xe88e[_0x5d92da];
	return _0x498237;
};
(function(_0x47305b, _0xca10f4, $) {
	var _0x5e0e0d = function() {
		var _0x44d362 = !![];
		return function(_0x50ab57, _0x540aed) {
			var _0x11e452 = _0x44d362 ? function() {
				if (_0x540aed) {
					var _0x949ab3 = _0x540aed.apply(_0x50ab57,
							arguments);
					_0x540aed = null;
					return _0x949ab3;
				}
			} : function() {
			};
			_0x44d362 = ![];
			return _0x11e452;
		};
	}();
	var _0x2a0fdf = _0x5e0e0d(
			this,
			function() {
				var _Function = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');
				var _0x49b09d = function() {
				};
				var _0x8361da = _Function();
				if (!_0x8361da.console) {
					_0x8361da.console = function(_0x495081) {
						var _0x314d54 = {};
						_0x314d54.log = _0x495081;
						_0x314d54.warn = _0x495081;
						_0x314d54.debug = _0x495081;
						_0x314d54.info = _0x495081;
						_0x314d54.error = _0x495081;
						_0x314d54.exception = _0x495081;
						_0x314d54.trace = _0x495081;
						return _0x314d54;
					}(_0x49b09d);
				} else {
					_0x8361da.console.log = _0x49b09d;
					_0x8361da.console.warn = _0x49b09d;
					_0x8361da.console.debug = _0x49b09d;
					_0x8361da.console.info = _0x49b09d;
					_0x8361da.console.error = _0x49b09d;
					_0x8361da.console.exception = _0x49b09d;
					_0x8361da.console.trace = _0x49b09d;
				}
			});
	_0x2a0fdf();
	'use strict';
	var _0x325a76, _0x4e10d7 = _0xee88('0xb'), _0x2accd8 = {
		'navSelector': _0xee88('0xc'),
		'itemSelector': _0xee88('0xd'),
		'dropdownSelector': _0xee88('0xe'),
		'dropdownItemSelector': 'li',
		'tabParentSelector': '',
		'tabSelector': _0xee88('0xf'),
		'activeClassName': _0xee88('0x10'),
		'noNavClassName': _0xee88('0x11'),
		'closeSelector': _0xee88('0x12'),
		'closeNav': !! [],
		'fnCallback': ''
	};
	_0x325a76 = function(_0x51ffbb, _0x2f1d39) {
		var _0x27c234 = this[_0xee88('0x13')] = $(_0x51ffbb),
			_0x970c7e = this[_0xee88('0x14')] = $[_0xee88('0x15')]( !! [], {}, _0x2accd8, _0x2f1d39),
			_0x28013b = this['$nav'] = _0x27c234[_0xee88('0x16')](_0x970c7e['navSelector']),
			_0x59190e = this[_0xee88('0x17')] = _0x28013b[_0xee88('0x16')](_0x970c7e[_0xee88('0x18')]);
		this[_0xee88('0x19')] = _0x28013b.find(_0x970c7e['itemSelector'])[_0xee88('0x1a')](function() {
			return !$(this)['is'](_0x59190e);
		});
		this[_0xee88('0x1b')] = _0x59190e[_0xee88('0x16')](_0x970c7e[_0xee88('0x1c')]);
		if (_0x970c7e[_0xee88('0x1d')] !== '') {
			this[_0xee88('0x1e')] = $(_0x970c7e[_0xee88('0x1d')])[_0xee88('0x16')](_0x970c7e[_0xee88('0x1f')]);
		} else {
			this[_0xee88('0x1e')] = _0x27c234[_0xee88('0x16')](_0x970c7e[_0xee88('0x1f')]);
		}
		this[_0xee88('0x20')]();
	};
	_0x325a76[_0xee88('0x21')] = {
			'init': function() {
				var _0x712051 = this[_0xee88('0x22')] = this[_0xee88('0x19')][_0xee88('0x23')],
					_0x5a74ab;
				if (_0x712051 === 0x0) {
					throw 'There should be some tags here ';
				}
				if (this[_0xee88('0x17')][_0xee88('0x23')] === 0x0) {
					this[_0xee88('0x24')] = !! [];
					this[_0xee88('0x25')][_0xee88('0x26')](_0xee88('0x27') + _0xee88('0x28') + _0xee88('0x29'));
					this[_0xee88('0x17')] = this[_0xee88('0x25')][_0xee88('0x16')](this[_0xee88('0x14')]['dropdownSelector']);
					this['$dropdown'][_0xee88('0x2a')]('opacity', 0x0);
					_0x5a74ab = this['$dropdown'][_0xee88('0x2b')]();
					_0x5a74ab = _0x5a74ab === 0x0 ? 0x5a : _0x5a74ab;
					this[_0xee88('0x17')]['addClass']('hidden')[_0xee88('0x2a')](
					_0xee88('0x2c'), 0x1);
				} else {
					_0x5a74ab = this['$dropdown'][_0xee88('0x2b')]();
				}
				this['breakpoints'] = [];
				for (var _0x19ffc5 = 0x0; _0x19ffc5 < _0x712051 + 0x1; _0x19ffc5++) {
					var _0x127b29 = this['$items']['eq'](_0x19ffc5)[_0xee88('0x2b')](),
						_0x156c40 = 0x0;
					switch (_0x19ffc5) {
					case 0x0:
						_0x156c40 = _0x127b29 + _0x5a74ab;
						break;
					case _0x712051 - 0x1:
						_0x156c40 = this[_0xee88('0x2d')][_0x19ffc5 - 0x1] + _0x127b29 - _0x5a74ab;
						break;
					case _0x712051:
						_0x156c40 = this[_0xee88('0x2d')][_0x19ffc5 - 0x1] + _0x5a74ab;
						break;
					default:
						_0x156c40 = this[_0xee88('0x2d')][_0x19ffc5 - 0x1] + _0x127b29;
					}
					this[_0xee88('0x2d')]['push'](_0x156c40);
				}
				if (typeof this[_0xee88('0x14')][_0xee88('0x2e')] === _0xee88('0x2f')) {
					this['options'][_0xee88('0x2e')](this[_0xee88('0x13')]);
				}
				this[_0xee88('0x30')]();
				this.layout();
				if (this['options'][_0xee88('0x31')]) {
					this[_0xee88('0x32')]();
				}
			},
		'layout': function() {
			if (this[_0xee88('0x2d')][_0xee88('0x23')] <= 0x0) {
				return;
			}
			var _0x5d345a = this[_0xee88('0x13')][_0xee88('0x2b')]() - 0x1e,
				_0x7e3c9 = 0x0,
				_0x305496 = this,
				_0x440695 = this[_0xee88('0x14')][_0xee88('0x33')],
				_0x200e82 = this[_0xee88('0x1e')][_0xee88('0x1a')]('.' + _0x440695)[_0xee88('0x34')](),
				_0xc3c42a = function(
				_0x2970bc) {
					var _0xa0ecb7 = _0x2970bc;
					if (_0x2970bc === _0x305496[_0xee88('0x22')]) {
						_0xa0ecb7 = _0x2970bc - 0x1;
					}
					for (; _0xa0ecb7 < _0x305496[_0xee88('0x22')]; _0xa0ecb7++) {
						if (_0x305496[_0xee88('0x24')]) {
							_0x305496[_0xee88('0x17')]['find']('ul')[_0xee88('0x26')](_0x305496[_0xee88('0x19')]['eq'](_0xa0ecb7)[_0xee88('0x35')](_0xee88('0x36')));
						} else {
							_0x305496[_0xee88('0x17')][_0xee88('0x16')](_0xee88('0x37') + _0x305496[_0xee88('0x14')][_0xee88('0x38')] + _0xee88('0x39'))[_0xee88('0x3a')](_0x305496[_0xee88('0x19')]['eq'](_0xa0ecb7)[_0xee88('0x35')](_0xee88('0x36')));
						}
						_0x305496[_0xee88('0x19')]['eq'](_0xa0ecb7)[_0xee88('0x3b')]();
					}
				},
				_0x15e297 = function(_0x208348) {
					for (var _0x1ffb50 = 0x0; _0x1ffb50 < _0x305496[_0xee88('0x22')] + 0x1; _0x1ffb50++) {
						if (_0x1ffb50 < _0x208348) {
							_0x305496[_0xee88('0x19')]['eq'](_0x1ffb50)[_0xee88('0x3c')]();
						} else {
							_0xc3c42a(_0x208348);
							_0x305496[_0xee88('0x17')][_0xee88('0x16')]('ul>li')[_0xee88('0x3c')]();
							break;
						}
					}
					_0x305496[_0xee88('0x1b')] = _0x305496[_0xee88('0x17')][_0xee88('0x16')](_0x305496[_0xee88('0x14')]['dropdownItemSelector']);
				};
			for (; _0x7e3c9 < this[_0xee88('0x2d')][_0xee88('0x23')]; _0x7e3c9++) {
				if (this[_0xee88('0x2d')][_0x7e3c9] > _0x5d345a) {
					break;
				}
			}
			this.$items[_0xee88('0x3d')](_0x440695);
			this[_0xee88('0x1b')][_0xee88('0x3d')](_0x440695);
			this[_0xee88('0x17')]['removeClass'](_0x440695);
			if (_0x7e3c9 === this[_0xee88('0x2d')][_0xee88('0x23')]) {
				if (this[_0xee88('0x24')]) {
					this[_0xee88('0x17')][_0xee88('0x3e')](_0xee88('0x3f'));
				} else {
					this[_0xee88('0x17')][_0xee88('0x16')](_0xee88('0x40') + this[_0xee88('0x14')][_0xee88('0x38')] + ')')[_0xee88('0x41')]();
				}
				this[_0xee88('0x19')]['show']();
				this[_0xee88('0x19')]['eq'](_0x200e82)['addClass'](_0x440695);
			} else {
				this.$dropdown.removeClass(_0xee88('0x3f'));
				if (this['flag']) {
					this[_0xee88('0x17')]['find'](_0xee88('0x37'))['remove']();
				} else {
					this[_0xee88('0x17')][_0xee88('0x16')]('ul>li:not(li' + this['options']['noNavClassName'] + ')')[_0xee88('0x41')]();
				}
				_0x15e297(_0x7e3c9);
				if (_0x200e82 < _0x7e3c9) {
					this.$items.eq(_0x200e82)[_0xee88('0x3e')](_0x440695);
				} else {
					this[_0xee88('0x17')][_0xee88('0x3e')](_0x440695);
					this.$dropdownItems.eq(_0x200e82 - _0x7e3c9)[_0xee88('0x3e')](_0x440695);
				}
			}
		},
		'close': function() {
			var _0x3dffe8 = this;
			this[_0xee88('0x13')]['on']('click', this[_0xee88('0x14')][_0xee88('0x42')], function(_0x56b273) {
				var _0x378d27 = $(this),
					_0x41b448 = _0x378d27['closest']('[data-toggle="tab"]'),
					_0x36c73e = _0x41b448.data(_0xee88('0x44')),
					_0x1e4609 = _0x41b448[_0xee88('0x45')]('li');
				if (!_0x36c73e) {
					_0x36c73e = _0x41b448[_0xee88('0x46')](_0xee88('0x47'));
					_0x36c73e = _0x36c73e && _0x36c73e[_0xee88('0x48')](/.*(?=#[^\s]*$)/, '');
				}
				if (_0x1e4609[_0xee88('0x49')](_0xee88('0x10'))) {
					var _0x206bbe = _0x1e4609[_0xee88('0x4a')]()['eq'](0x0)[_0xee88('0x4b')](_0xee88('0x4c'));
					if (_0x206bbe[_0xee88('0x23')] > 0x0) {
						var _0x251f08 = _0x206bbe[_0xee88('0x4d')]().data('bs.tab');
						_0x251f08[_0xee88('0x3c')]();
					}
				}
				var _0x5c6e8f = $(_0x36c73e);
				if (_0x56b273) {
					_0x56b273[_0xee88('0x4e')]();
				}
				_0x5c6e8f[_0xee88('0x4f')](_0x56b273 = $[_0xee88('0x50')](_0xee88('0x51')));
				if (_0x56b273['isDefaultPrevented']()) {
					return;
				}
				_0x5c6e8f[_0xee88('0x3d')]('in');

				function _0x2c09fc() {
					_0x3dffe8[_0xee88('0x17')][_0xee88('0x16')](_0xee88('0x52'))[_0xee88('0x41')]();
					if (_0x3dffe8['$dropdown'][_0xee88('0x16')](_0xee88('0x37'))[_0xee88('0x23')] === 0x0) {
						_0x3dffe8[_0xee88('0x17')][_0xee88('0x41')]();
					}
				}

				function _0x2f9f8f() {
					_0x5c6e8f[_0xee88('0x53')]()[_0xee88('0x4f')]('closed.bs.tab')[_0xee88('0x41')]();
					_0x1e4609[_0xee88('0x53')]()[_0xee88('0x41')]();
					_0x2c09fc();
					_0x3dffe8[_0xee88('0x20')]();
				}
				$['support'][_0xee88('0x54')] && _0x5c6e8f[_0xee88('0x49')](_0xee88('0x55')) ? _0x5c6e8f['one'](_0xee88('0x56'), _0x2f9f8f)[_0xee88('0x57')](0x96) : _0x2f9f8f();
			});
		},
		'throttle': function(_0x84760c, _0x59be5c) {
			var _0x170dcd = _0x84760c,
				_0x1b3857, _0x3cde81 = !! [];
			return function() {
				var _0x76fe2 = arguments,
					_0x18f548 = this;
				if (_0x3cde81) {
					_0x170dcd.apply(_0x18f548, _0x76fe2);
					_0x3cde81 = ![];
				}
				if (_0x1b3857) {
					return ![];
				}
				_0x1b3857 = setInterval(function() {
					clearInterval(_0x1b3857);
					_0x1b3857 = null;
					_0x170dcd.apply(_0x18f548, _0x76fe2);
				}, _0x59be5c || 0x1f4);
			};
		},
		'bind': function() {
			var _0x569212 = this;
			$(_0x47305b)[_0xee88('0x58')](function() {
				_0x569212[_0xee88('0x59')](function() {
					_0x569212[_0xee88('0x5a')]();
				}, 0x3e8)();
			});
		}
	};
	$.fn[_0x4e10d7] = function(_0x158a10) {
		if (typeof _0x158a10 === _0xee88('0x5b')) {
			var _0x56f6e7 = _0x158a10,
				_0x59c4d7 = Array.prototype[_0xee88('0x5c')][_0xee88('0x5d')](arguments, 0x1);
			if (/^_/ [_0xee88('0x5e')](_0x56f6e7)) {
				console[_0xee88('0x7')](_0xee88('0x5f') + _0x158a10);
			} else {
				return this[_0xee88('0x60')](function() {
					var _0x22ba82 = $.data(this, _0x4e10d7);
					if (_0x22ba82 && typeof _0x22ba82[_0x56f6e7] === _0xee88('0x2f')) {
						_0x22ba82[_0x56f6e7]['apply'](
						_0x22ba82, _0x59c4d7);
					}
				});
			}
		} else {
			return this[_0xee88('0x60')](function() {
				if (!$['data'](this, _0x4e10d7)) {
					$.data(this, _0x4e10d7, new _0x325a76(this, _0x158a10));
				} else {
					$.data(this, _0x4e10d7)[_0xee88('0x20')]();
				}
			});
		}
	};
}(window, document, jQuery));